package com.zkx.mvp.persenter.support;

import com.zkx.mvp.model.base.HttpResultList;

import java.util.List;

import rx.functions.Func1;

/**
 * Author：zhangkx on 2017/6/16 16:57
 * Email：zkx9025@163.com
 * 当返回结果为list时
 */

public class HttpResultFuncList<T> implements Func1<HttpResultList<T>, List<T>> {

    @Override
    public List<T> call(HttpResultList<T> tHttpResultList) {
        return tHttpResultList.getData();
    }
}
